package Bean;

import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BeanSc {
    int sc_id;
    int student_id;
    int class_id;
    int state;
    String day;
    BeanStudent student;

    public BeanStudent getStudent() {
        return student;
    }

    public void setStudent(BeanStudent student) {
        this.student = student;
    }

    public int getSc_id() {
        return sc_id;
    }

    public void setSc_id(int sc_id) {
        this.sc_id = sc_id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public int getStudent_id() {
        return student_id;
    }

    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public JSONObject toJson() {
        JSONObject j=new JSONObject();
        j.put("sc_id", sc_id);
        j.put("student_id", student_id);
        j.put("class_id", class_id);
        j.put("state", state);
        j.put("student", student);
        j.put("day", day);

        return j;
    }
}
